<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>${siteName!""}</title>
    <link rel="icon" href="/home/imgs/favicon.ico" type="image/x-icon">
    <link media="all" href="/home/css/index.css" type="text/css" rel="stylesheet">
    <link media="all" href="/home/css/user_center.css" type="text/css" rel="stylesheet">
</head>
<body>
  <#include "../common/top_header.ftl"/>
	<#include "../common/left_menu.ftl"/>
﻿<div class="container">
    <div class="main center">
<ul id="middle_nav" class="clearfix">
    <li class="on"><a href="">我的购物车</a></li>
</ul>
<div id="my_products">
    <div id="onsale_pro">
                <#if goodsList??>
                 <#list goodsList as goods>
                 <div class="enshr_each" id="">
                     <div class="enshr_info">
                         <h2><a href="../goods/detail?id=${goods.id}" title="${goods.name}">名称:${goods.name}&nbsp;&nbsp;&nbsp;价格:${goods.price}</a></h2>
                         <p style="overflow:hidden;">${goods.describle}</p>
                         <div class="enshr_state">
	                        <span id="prostate">
	                        	状态：
	                        	<#if goods.status ==1>
	                        	<font style="color:rgb(75, 192, 165);">正在出售</font>
								<#elseif goods.status ==2>
	                        	<font style="color:red;">已下架</font>
                                <#elseif goods.status ==5>
                                    <font style="color:green;">已付款</font>
								<#else>
	                        	<font style="color:#4BC00F;">已售出</font>
								</#if>
	                        </span>|
                             &nbsp;&nbsp;<span id="prostate">上架日期：${goods.createTime?string('yyyy.MM.dd HH:mm:ss')}</span>
	                            <#if goods.status == 1>
	                            <span class="enshrine_it" onclick="buy(${goods.id});">购买</span>
								<#elseif goods.status == 2>
	                            <span class="enshrine_it">已下架</span>
								<#elseif goods.status == 3>
	                            <span class="enshrine_it">已售出</span>
								</#if>
                         </div>
                     </div>
                     <a href="../goods/detail?id=${goods.id}">
                         <img class="enshr_ph" src="/photo/view?filename=${goods.photo}" alt="${goods.name}">
                     </a>
                 </div>
				 </#list>
				</#if>
    </div>
</div>
</div>
</div>
<div class="return-to-top"><a href="#"></a></div><!--返回顶部-->
 	<#include "../common/right_menu.ftl"/>
	<#include "../common/bottom_footer.ftl"/>
<script  src="/home/js/jquery-3.1.1.min.js"></script>
<script src="/home/js/common.js"></script>
<script src="/home/js/user_center.js"></script>
<script src="/home/js/add.js"></script>
</html>